﻿@model RightControl.Model.ShipTemplate
@using RightControl.Model;
@{
    ViewBag.Title = "运费模板";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutForm.cshtml";
}

<style type="text/css">
    .layui-form-label {
        width: 100px;
    }

    .layui-input-block {
        margin-left: 130px;
    }

    .layui-textarea {
        min-height: 90px;
    }

    .selectItem-width {
        width: 120px;
    }
</style>
<form id="form" class="layui-form" action="/DataSrv/PlatForm/UpdateAmazonMeta" method="post">
    <input type="hidden" value="@Model.Id" name="Id" />
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
          

                <div class="layui-card">
                    <div class="layui-card-header">价格库存</div>
                    <div class="layui-card-body" pad15>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label"><span class="fRed">*</span>国内头程：</label>
                                <div class="layui-input-inline" style="width: 175px;">
                                    <select id="selToucheng" name="Toucheng">
                                        <option value="" selected="selected">请选择</option>
                                        <option value="0"> 0 </option>
                                        <option value="5"> 5 </option>
                                        <option value="8"> 8 </option>
                                        <option value="10"> 10 </option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label"><span class="fRed">*</span>国际运费：</label>
                                <div class="layui-input-inline" style="width: 175px;">
                                    <select id="selIntelShipping" name="IntelShipping">
                                        <option value="" selected="selected">请选择</option>
                                        <option value="75"> 75 </option>
                                        <option value="80"> 80 </option>
                                        <option value="85"> 85 </option>
                                        <option value="90"> 90 </option>
                                        <option value="95"> 95 </option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label"><span class="fRed">*</span>挂号费：</label>
                                <div class="layui-input-inline" style="width: 175px;">
                                    <select id="selRegFee" name="RegFee">
                                        <option value="" selected="selected">请选择</option>
                                        <option value="10"> 10 </option>
                                        <option value="12"> 12 </option>
                                        <option value="15"> 15 </option>
                                        <option value="20"> 20 </option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label"><span class="fRed">*</span>利润率：</label>
                                <div class="layui-input-inline" style="width: 175px;">
                                    <select id="selProfit" name="Profit">
                                        <option value="" selected="selected">请选择</option>
                                        <option value="0.4"> 40% </option>
                                        <option value="0.5"> 50% </option>
                                        <option value="0.6"> 60% </option>
                                        <option value="0.7"> 70% </option>
                                        <option value="0.5"> 80% </option>
                                        <option value="0.9"> 90%</option>
                                        <option value="1"> 100% </option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">促销日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" id="promoteDate" placeholder="请选择日期范围">
                                </div>
                            </div>

                            @*<div class="layui-inline">
                                <label class="layui-form-label"><span class="fRed">*</span>运输方式：</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="transportBy" value="FBA" title="FBA" checked="">
                                    <input type="radio" name="transportBy" value="FBM" title="FBM">
                                </div>
                            </div>*@
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">价格：</label>
                                <label class="layui-form-label">19.25</label>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">促销价：</label>
                                <label class="layui-form-label">28.63</label>
                            </div>
                        </div>

                    </div>
                </div>                

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">确认保存</button>
                        <div class="div-msg fl" style="float:left;">@ViewBag.Msg</div>
                    </div>
                </div>
            </div>
        </div>


    </div>

</form>

<script type="text/javascript">
    layui.use(['form','laydate'], function () {
        var laydate = layui.laydate;
        var form = layui.form;
        //日期范围
        laydate.render({
            elem: '#promoteDate'
          , range: true
        });

        submitForm(form, "更新成功"); //监听提交
    });


    //$("#promoteDate").value

</script>